Attribute-based access control (ABAC) is a security model that determines access rights based on attributes associated with users, resources, and environmental conditions.

In ABAC, access decisions are made dynamically at runtime by evaluating the attributes of the requesting user, the resource being accessed, and the context of the access attempt against a set of access control policies.

It uses attributes such as user roles, group memberships, user attributes (e.g., department, job title), resource properties (e.g., sensitivity level, classification), and environmental factors (e.g., time of day, location) to define access control policies. These policies specify the conditions under which access is allowed, denied, or granted with restrictions.

ABAC offers greater flexibility and granularity than traditional access control models such as role-based access control (RBAC) and discretionary access control (DAC).

ABAC allows organizations to define complex access policies that consider various contextual factors, enabling dynamic, and context-aware access control decisions.

ABAC is a centralized implementation of rule-based access control (RuBAC). The figure shows this concept, demonstrating how access to a particular data item may have to be decided based on not only the usual and customary attributes of subjects and objects, but also by environmental variables. The same data items on an archive server, for example, might need different protection—that is, different access restrictions—than when they are in the production system. Users who are remotely connecting to the system may need to be restricted based on exactly where in the world they are at the time of the access request. This last test is especially handy for identifying users connecting via virtual private networks (VPNs), such as The Onion Router (TOR) or others that mask the user IP address by constant connection hopping. PayPal, for example, uses this in their security operations to flag potentially suspicious access attempts.

Figure: ABAC

ABAC goes beyond the limitations of the access control models described earlier. Those models used a simple user-to-object relationship, whereas ABAC adds attributes (descriptors) to the subjects and objects that can enhance the granularity or precision of access controls.

For example, a user/subject may be a nurse working in a hospital cardiology department. There are many nurses in the hospital, but the access for each one is dependent not only on their job function as a nurse, but also on their placement within the hospital. A nurse in one department should not be able to access medical records for patients in another department, so each nurse is assigned attributes that describe their role within the nursing function, and each patient record is assigned attributes according to which department they are in in the hospital. With ABAC, the attributes associated with the nurse are compared with the attributes associated with the patient’s medical record to ensure access is granted only in accordance with the laws and policies of the organization. This ensures only a nurse in cardiology could access the records of a patient in the cardiology department, and the nurse in cardiology would not be able to access the records of patients in other departments.